-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for Wifi scan options #302
Conversation
I don't know what is left do to, but from my point of view, this could be merged. I have added a lot of doc comments. I could also add an example, but I only have an ESP32S3. |
esp-wifi/src/wifi/mod.rs
Outdated
impl ScanTypeConfig { | ||
fn validate(&self) { | ||
if matches!(self, Self::Passive(dur) if *dur > Duration::from_millis(1500)) { | ||
#[cfg(feature = "log")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just use warn!
here
apart from the small nitpicks about logging this looks good to me |
Co-authored-by: Dániel Buga <[email protected]>
I'll run the usual tests on all targets just to make sure it doesn't break anything and if nothing breaks it should be fine to merge I guess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR adds support for WIFI options, enabling advanced configuration and passive scanning.
Could lay the foundation for esp-rs/embedded-svc#57.